package com.mmp.main.servlet.systemsettings;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.mmp.common.servlet.BasicServlet;
import com.mmp.main.entity.User;

public class UserProfileDisplayServlet extends BasicServlet {

	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("userProfile", getUser(request));
		forward(request, response, "systemsettings/UserProfile.jsp");
	}

	private User getUser(HttpServletRequest request) {
		return getSessionUser(request);
	}
}
